package demo07_Adapter.model;

public class EncryptionAdapter implements MyEncryption {

    private ThirdEncryption thirdEncryption;

    public EncryptionAdapter() {
        this.thirdEncryption = new ThirdEncryption();
    }

    @Override
    public String doEncryp(String key) {
        return thirdEncryption.doEncryp(key);
    }
}
